home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mntlib43 / mntlib / binmode.c < prev    next >
C/C++ Source or Header  |  1992-08-26  |  458b  |  22 lines

  1. /*
  2.  * added _binmode()
  3.  *    if called with TRUE, then subsequently all fopens have _IOBIN
  4.  *    by default  on open. This will make life much easier for
  5.  *    people who have been using the Gnu lib (any my job with the compiler
  6.  *    much easier too, dont't have to go hunting for fopens())
  7.  *                ++jrb;
  8.  */
  9.  
  10. #include <stdio.h>
  11.  
  12. extern int __default_mode__;
  13.  
  14. void _binmode(force)
  15. int force;
  16. {
  17.     if(force)
  18.     __default_mode__ = _IOBIN;
  19.     else
  20.     __default_mode__ = 0;
  21. }
  22.